import request from '@/utils/request'

// 查询BOM详情信息(父类和子项)
export function queryBomchildList(params) {
  return request({
    url: '/tEngBom/queryBomchildList',
    method: 'get',
    params
  })
}

// 查询BOM的操作人和日志
export function queryBomLog(data) {
  return request({
    url: '/TJxLog/queryBomLog',
    method: 'post',
    data
  })
}

/** BOM日志 */
export function queryLog(data) {
  return request({
    url: '/TJxLog/queryLog',
    method: 'post',
    data
  })
}

// 树结构详情bom
export function queryBomTreeDetail(data) {
  return request({
    url: '/bomTree/queryBomTreeDetail',
    method: 'post',
    data
  })
}

// 获取物料数据
export function queryMaterialParticularsWithSmallCode(params) {
  return request({
    url: '/tBdMaterial/queryMaterialParticularsWithSmallCode',
    method: 'get',
    params
  })
}

// 查询上一级BOM列表接口
export function queryBomFatherList(data) {
  return request({
    url: '/tEngBom/queryBomFatherList',
    method: 'post',
    data
  })
}
